<?php

class erreur404 {

	private $layout = 'default';

		public function index(){
			$this->render('index');
		}

		public function render($filename){
		//envoies les données de $vars a la vu
		//extract($this->vars);
		ob_start();
		require('viewError/index.php');
		$content_for_layout = ob_get_clean();
		if($this->layout==false){
			echo $content_for_layout;
		}else{ require(ROOT.'views/layout/'.$this->layout.'.php');}
	}
}

?>